package com.skynet.springboot.mybatis.springmybatis.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;


/**
 * @author Skynet
 * @Date 2017/8/22-23:18.
 */
@Data
@ToString(exclude = "department")
public class Employee {

    private Integer id;
    private String name;
    private Integer gender;
    private String email;

    @JsonIgnoreProperties(value = {"employees"}) //忽略department对象下的employees属性
    private Department department;

}
